import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import dayjs from 'dayjs'

import '@/styles/global.css'
import '@/components/global'
// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// 导入富文本编辑器样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
// 全局注册富文本编辑器组件
Vue.use(VueQuillEditor)
Vue.config.productionTip = false
Vue.prototype.$axios = axios
Vue.component('Card', () => import('@/components/card.vue'))
Vue.filter('format', (msg) => {
  return dayjs(msg).format('YYYY-MM-DD HH:mm:ss')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
